package com.smxy.mall.dao;

import com.smxy.mall.entity.Swiper;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface SwiperDao extends JpaRepository<Swiper,String>, JpaSpecificationExecutor<Swiper> {
    Swiper findById(Integer id);

    List<Swiper> findByShopIdAndPosition(Integer shopId,String position);
}
